<?php
/**
* Gives out the album cover image (file name)
*/
function smarty_modifier_albumimage($src='', $album_id=0)
{
	$album_id=(int)$album_id;
	
	if(!$src)
	{
		# Do some default image
		$src = 'images/album-coverimage.jpg';
	}
	else
	{
		# eg. for an image image/1/2/3.jpg
		# => database should have: 1/2/3.jpg
		$src = "image/{$src}";
	}
	return $src;
}
?>